package com.techwells.applicationMarket.service;

import org.springframework.transaction.annotation.Transactional;

import com.techwells.applicationMarket.domain.Currency;
import com.techwells.applicationMarket.util.PagingTool;

/**
 *  币种的service
 * @author 陈加兵
 */
@Transactional  //添加事务管理器
public interface CurrencyService {
	
	/**
	 * 添加 币种
	 * @param currency
	 * @return
	 * @throws Exception
	 */
	Object addCurrency(Currency currency)throws Exception;
	
	/**
	 * 根据 币种Id获取信息
	 * @param currencyId
	 * @return
	 * @throws Exception
	 */
	Object getCurrencyById(Integer currencyId)throws Exception;
	
	
	/**
	 * 修改 币种
	 * @param currency
	 * @return
	 * @throws Exception
	 */
	Object modifyCurrencyReturnObject(Currency currency)throws Exception;
	
	
	/**
	 * 修改 币种
	 * @param currency
	 * @return
	 * @throws Exception
	 */
	int modifyCurrencyReturnCount(Currency currency)throws Exception;
	
	
	/**
	 * 根据 币种Id删除数据
	 * @param currencyId
	 * @return
	 * @throws Exception
	 */
	Object deleteCurrencyReturnObject(Integer currencyId)throws Exception;
	
	/**
	 * 根据 币种Id删除数据
	 * @param currencyId
	 * @return
	 * @throws Exception
	 */
	int deleteCurrencyReturnCount(Integer currencyId)throws Exception;
	
	
	
	/**
	 * 分页获取 币种数据
	 * @param pagingTool
	 * @return
	 * @throws Exception
	 */
	Object getCurrencyList(PagingTool pagingTool)throws Exception;
	
	
	
	
	
}
